public class Posicion {
	private long x, y;

	public Posicion(long x, long y) {
		this.x = x;
		this.y = y;
		
	}

	public long getX() {
		return x;
	}

	public long getY() {
		return y;
	}

	public void setX(long x) {
		this.x = x;
	}

	public void setY(long y) {
		this.y = y;
	}

	/* (x-a)^2+(y-b)^2<=R^2 */
	public boolean in(Posicion p, long R){
		boolean b=false;
		if ((Math.pow((p.getX()-x),2) + Math.pow((p.getY()-y),2)) <= Math.pow(R,2)) b = true;
		return b;
	}

	public boolean equals(Posicion p) {
		if (p.getX()==x && p.getY()==y) return true;
		else return false;
	}
	
	public String toString(){
		return "(" + x + "," + y + ")";
	}

}
